package com.zwj.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zwj.entity.ZOrderDetail;


public interface ZOrderDetailService {
	
	//依据order_id查询订单详情
	public List<ZOrderDetail> selectAllOrderDetailByorder_id(Integer order_id);
	//查询所有
	public List<ZOrderDetail> selectAllOrderDetail();
	//删除订单详情
	public boolean deleteOrderDetail(Integer order_id);
	/*//依据订单名字查询
	public ZOrderDetail selectLikeByName(@Param("buyer_name")String buyer_name);*/
	//依据user_id查询
	public List<ZOrderDetail> selectAllOrderDetailByuser_id(Integer user_id);
	
	//订单合计
	public List<ZOrderDetail> selectTotal();
	
	public int addOrderDetail(ZOrderDetail zOrderDetail);
}
